{% extends "publisher/layout.html" %}

{% block content %}
<form method="post" enctype="multipart/form-data">
    <div class="form-group">
        <label>活动标题</label>
        <input class="form-control" placeholder="{{ activity.title }}" disabled="disabled"/>
        <!--
        <input type="text" class="form-control" placeholder="单行输入">
        -->
    </div>
    <br>
    <div class="form-group">
        <label>活动截止日期</label>
        <!--<input type="date" class="form-control" placeholder="单行输入">-->
        <input class="form-control" placeholder="{{ activity.closing_date }}" disabled="disabled"/>
    </div>
    <br>
    <div class="form-group">
        <label>活动概述</label>
        <!--<textarea type="text" class="form-control" placeholder="请用不超过50字概述你的活动" style="height:120px;"></textarea>-->
        <textarea type="text" class="form-control" disabled="disabled" style="height:120px"> {{ activity.description }} </textarea>
    </div>
    <br>
    <div class="form-group">
        <label>活动分类</label>
        <input class="form-control" placeholder="{{ activity.activity_class }}" disabled="disabled"/>
    </div>
    <br>
    <div class="form-group">
        <label>展示图片</label>
        <!--<input type="file" class="form-control-file">-->
        <br>
        <img src="/static/uploads/{{ activity.logo }}">

        <!--<img data-src="holder.js/300x160" style="margin-top: 6px;">-->
        <!--<br>-->

        <!--<a class="btn btn-primary" style="margin-top:6px;">上传图片</a>-->
    </div>
    <br>
    <div class="form-group">
        <label>文章链接</label>
        <!--<input type="text" class="form-control" placeholder="单行输入">-->
        <input class="form-control" placeholder="{{ activity.article_url }}" disabled="disabled"/>
    </div>
    <br>
    <div class="form-group">
        <label>备注</label>
        <!--<textarea type="text" class="form-control" placeholder="多行输入" style="height:120px;"></textarea>-->
        <textarea type="text" class="form-control" disabled="disabled" style="height:60px"> {{ activity.remark }} </textarea>
    </div>


    <div class="text-center">
        <a class="btn btn-success" href="javascript:history.go(-1);" style="background: #007bff">返回</a>
    </div>

</form>
{% endblock %}

{% block js %}
<script>
    $(document).ready(function() {
        $("#m2").addClass("active");
    });
</script>
{% endblock %}